package com.rong.creatmodel.prototype.shallow;

public class ShallowClone implements Cloneable{

    public ShallowClone(){
        System.out.println("具体原型创建成功");
    }


    @Override
    public ShallowClone clone() throws CloneNotSupportedException {
        System.out.println("具体原型复制成功");
        return (ShallowClone)super.clone();
    }
}
